﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LGE;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace EggCatcher
{
    class Poop : GameObject
    {
        int velocity = 3;

        public Poop(GameScreen gs, Vector2 pos)
            : base(gs, Engine.Load<Texture2D>("Images\\caca"))
        {
            position = pos;
        }

        public override void Update(GameTime gameTime)
        {
            position += Direction.Down * velocity;
            if (position.Y > Engine.viewport.Height) alive = false;
            if (Collision((gameScreen as PlayScreen).basket))
            {
                if (alive) (gameScreen as PlayScreen).PoopHitBasket();
                alive = false;
            }
        }
    }
}
